/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SimSun', '宋体', serif;
  height: 100vh;
  color: white;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

/* 背景容器 - 用于实现背景图与内容一起缩放 */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../picture/F2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 主容器 */
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

/* 图片容器 - 一行四列布局 */
.images-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 3vw;
  width: 100%;
  max-width: 1200px;
  max-height: 80vh;
  align-items: center;
  justify-items: center;
}

/* 图片项样式 */
.image-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, width 0.3s ease;
  width: 100%;
  max-width: 250px;
}

.image-item:hover {
  transform: translateY(-5px);
}

/* 图片样式 */
.image-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: width 0.3s ease;
}

/* 标题栏样式 */
.title-bar {
  padding: clamp(4px, 1.5vw, 8px) clamp(6px, 2vw, 12px);
  border-radius: 6px;
  font-weight: bold;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: white;
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
  font-family: 'SimSun', '宋体', serif;
}

.title-yellow {
  background-color: #FFD700;
}

.title-red {
  background-color: #FF4500;
}

.title-green {
  background-color: #228B22;
}

.title-blue {
  background-color: #4169E1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .image-item {
    max-width: 230px;
  }
}

@media (max-width: 1024px) {
  .images-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .image-item {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .images-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .images-container {
    grid-template-columns: 1fr;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-item {
  animation: fadeIn 0.5s ease-in-out;
}

.image-item:nth-child(1) {
  animation-delay: 0.1s;
}

.image-item:nth-child(2) {
  animation-delay: 0.2s;
}

.image-item:nth-child(3) {
  animation-delay: 0.3s;
}

.image-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* 底部文本样式 */
.footer-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'SimSun', '宋体', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
}